home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 1.6 KB | 58 lines | [TEXT/ttxt] |
- --<<<
- -- Filename:
- -- axisprop.sx
-
- -- Other Files Required:
- -- None
-
- -- Specialized Classes:
- -- AxisProperty
-
- -- Instructions to User:
- -- The AxisProperty class defines the attributes/properties that the grapher
- -- will graph the objects by. For each attribute you want the graph to represent
- -- you must instantiate an axis property.
-
- -- Author:
- -- Dionn Stewart. Revised by Ray Davis.
-
- -- The AxisProperty class defines the attributes/properties that the grapher
- -- will graph the objects by.
- -- For each attribute you want the graph to represent you must instantiate
- -- a graph property.
-
- in module Autofinder
-
- class AxisProperty ()
- instance variables
- axisTarget -- target to be presented by the axis label
- minValue -- minimum value of the property
- minTarget -- target to be presented by the minimum label
- maxValue -- minimum value of the property
- maxTarget -- target to be presented by the maximum label
- units -- units of measurement that values are expressed in
- name -- case-sensitive name of the property (i.e., @price)
- getterFn -- getter generic to retrieve the property value
- end
-
- method init self {class AxisProperty} #rest args #key \
- axisTarget: minValue: minTarget:(undefined) \
- maxValue: maxTarget:(undefined) units:("") name: ->
- (
- self.axisTarget:= axisTarget
- self.minValue:= minValue
- if minTarget = undefined do
- minTarget := minValue as String
- self.minTarget:= minTarget
- self.maxValue:= maxValue
- if maxTarget = undefined do
- maxTarget := maxValue as String
- self.maxTarget:= maxTarget
- self.units:= units
- self.name:= name
- self
- )
-
- "Compiled axisprop.sx"
- -->>>
-